package com.xuecheng.content;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @Author 12441
 * @Date 2022/9/14 19:05
 * @Version 1.0
 */
@EnableAsync//开启异步处理支持
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.xuecheng.content.mapper")
@ComponentScan(basePackages = {
        "com.xuecheng.content",//内容微服务
        "com.xuecheng.web",//web插件
        "com.xuecheng.mybatis"//mp插件
})
@EnableFeignClients("com.xuecheng.*.api")
public class ContentApplication {
    public static void main(String[] args) {
        SpringApplication.run(ContentApplication.class,args);
    }
}
